<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
        lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, params-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div th:include="head :: head"></div>

    <div>
        <a href="/params/form">新增</a>
    </div>
    <table>
        <thead>
        <tr>
            <th>键</th>
            <th>值</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="params:${list}" >
            <td th:text="${params.key}"></td>
            <td th:text="${params.value}"></td>
            <td >
                <a th:href="@{/params/form(id=${params.id})}">编辑</a>|
                <a th:href="@{/params/delete(id=${params.id})}">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</body>
</html>